#pragma once

#include "resource.h"

typedef struct tag_MSGMAP_ENTRY
{
	UINT msg;
	LRESULT (*pfn)(HWND,WPARAM,LPARAM);
}MSGMAP_ENTRY;

typedef struct tag_COMMAND_ENTRY
{
	int id;
	LRESULT (*pfn)(HWND,UINT,UINT,HWND);
}CMDMAP_ENTRY;

#define dim(x) (sizeof(x) / sizeof(x[0]))

#pragma comment(lib,"comctl32")

ATOM				MyRegisterClass(HINSTANCE hInstance);
BOOL				InitInstance(HINSTANCE, int);
